package com.gzsxy.esjy.bus.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

import java.util.Map;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 基础消息事件 必须基础ApplicationEvent监听类
 * @date 2021/10/12 9:39
 */
@Setter
@Getter
public abstract class BaseMessageEvent<T> extends ApplicationEvent {


    /**
     * @description: 序列化字符串
     */
    private static final long serialVersionUID = 4266151143271548913L;


    private final T message;

    private final Map<String, Object> map;


    public BaseMessageEvent(T message, Map<String, Object> map) {
        super(message);
        this.message = message;
        this.map = map;

    }
}
